package com.yootk.main;

import com.yootk.bean.vo.Message;
import com.yootk.bean.vo.bean.YootkProfile;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.core.convert.support.ConfigurableConversionService;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.StandardEnvironment;

public class SpringSourceDemo {
    private static final Logger LOGGER = LoggerFactory.getLogger(SpringSourceDemo.class);
    public static void main(String[] args) {
        ConfigurableEnvironment environment = new StandardEnvironment() ;
        ConfigurableConversionService conversionService = environment.getConversionService();
        Double number = conversionService.convert(6.3,Double.class) ;
        LOGGER.info("【数据转换后的数学计算】number = {}", number * 2);
    }
}